<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
    <h3>首页</h3>
    <!--<a th:href="@{/target}">访问页面target.html</a>-->
    <!--<a th:href="@{/testMap}">通过map向request域对象共享数据</a><br>-->
    <!--<a th:href="@{/employee}">查看员工信息</a>-->
    <form th:action="@{/testRequestBody}" method="post">
        用户名: <input type="text" name="username"><br>
        密码: <input type="password" name="password"><br>
        <input type="submit" value="测试@RequestBody">
    </form>

    <form th:action="@{/testRequestEntity}" method="post">
        用户名: <input type="text" name="username"><br>
        密码: <input type="password" name="password"><br>
        <input type="submit" value="测试RequestEntity">
    </form>
    <a th:href="@{/testResponseBody}">通过@ResponseBody响应浏览器数据</a><br>
    <a th:href="@{/testResponseUser}">通过@ResponseBody响应浏览器User对象</a><br>

</body>
</html>